package de.baumann.browser.adapter

import android.widget.ImageView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import de.baumann.browser.R
import de.baumann.browser.api.net.vo.explore.OdinDestroyBean

class ExploreOdinDestroyRecordAdapter : BaseQuickAdapter<OdinDestroyBean, BaseViewHolder>(R.layout.item_odin_destroy_record) {
    override fun convert(helper: BaseViewHolder, item: OdinDestroyBean) {
        helper.getView<ImageView>(R.id.ivLogo)
        helper.setText(R.id.tvItemName, "销毁ODIN")
        helper.setText(R.id.tvPowerAmount, "${item.power} 算力")
        helper.setText(R.id.tvDestroyTime, "${item.createTime} ")
    }
}